Luma x20 APIs
Streaming APIs (RTSP/HTTP commands)
RTSP command for IP camera live stream:
rtsp://<host>:<port>/<streamName>
                                            
- 
                                                    Example: Fetch first stream using RTSP: rtsp://192.168.254.140:554/profile1
- 
                                                    Example: Fetch second stream using RTSP: rtsp://192.168.254.140:554/profile2
- 
                                                    Example: Fetch third stream using RTSP: rtsp://192.168.254.140:554/profile3
- 
                                                    Example: Fetch integration stream using RTSP: rtsp://192.168.254.140:554/spe
RTSP command for NVR live stream:
rtsp://<host>:<port>/?chID=<channelId>&streamType=<streamType>
                                            
- 
                                                    Example: Fetch main stream of channel 1 using RTSP: rtsp://192.168.254.147:554/?chID=1&streamType=main
- 
                                                    Example: Fetch sub stream of channel 1 using RTSP: rtsp://192.168.254.147:554/?chID=1&streamType=sub
HTTP Command for IP Camera Snapshot:
If the IPC is connected to a network switch: http://<host>:<port>/GetSnapshot
- 
                                                    Example: http://192.168.254.140:80/GetSnapshot
If the IPC is connected to an X20 NVR: http://<host>:<NVRPortNumber>/GetSnapshot
- 
                                                    Example (Port 1 of X20 NVR): http://192.168.254.139:59101/GetSnapshot
Adding credentials to commands
If you need to add credentials to a command, insert them immediately after the rtsp://or http:// header as <username>:<password>@
- 
                                                    Example: rtsp://admin:password@192.168.1.10:554/TheRestOfTheCommand